rem
rem the actual maven command is sent from parent batch script; this script runs every artefact against it
rem

rem input is bound to %* since it will contain several spaces and we need to get the entire line
set maven_command=%*

rem api role
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_ambient.jar" -DpomFile="poms\cd_ambient-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_broker.jar" -DpomFile="poms\cd_broker-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_cache.jar" -DpomFile="poms\cd_cache-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_core.jar" -DpomFile="poms\cd_core-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_datalayer.jar" -DpomFile="poms\cd_datalayer-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_dynamic.jar" -DpomFile="poms\cd_dynamic-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_linking.jar" -DpomFile="poms\cd_linking-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_model.jar" -DpomFile="poms\cd_model-7.1.0.pom"

rem
rem tcdl & wai not included since not typically in use
rem
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_tcdl.jar" -DpomFile="poms\cd_tcdl-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\lib\cd_wai.jar" -DpomFile="poms\cd_wai-7.1.0.pom"

rem caching role: unnecessary; all part of api

rem context roles: todo

rem cwd-extensions: todo

rem deployer: unnecessary; all is in cd_upload

rem outbound email
rem unnecessary - open source! call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Subscription\jasypt.jar" -DpomFile="poms\jasypt.pom"
call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Subscription\oe_profile.jar" -DpomFile="poms\oe_profile-7.1.0.pom"
call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Subscription\oe_profilesync.jar" -DpomFile="poms\oe_profilesync-7.1.0.pom"
call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Subscription\oe_utils.jar" -DpomFile="poms\oe_utils-7.1.0.pom"
call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Tracking\oe_tracking.jar" -DpomFile="poms\oe_tracking-7.1.0.pom"
call %maven_command% -Dfile="..\..\Outbound E-Mail\Presentation System\Java\Tracking\oe_trackingsync.jar" -DpomFile="poms\oe_trackingsync-7.1.0.pom"

rem monitoring: todo

rem preview (Experience Manager)
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_odata.jar" -DpomFile="poms\cd_odata-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_odata_types.jar" -DpomFile="poms\cd_odata_types-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_preview_ambient.jar" -DpomFile="poms\cd_preview_ambient-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_preview_web.jar" -DpomFile="poms\cd_preview_web-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_session.jar" -DpomFile="poms\cd_session-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\web\java\lib\cd_wrapper.jar" -DpomFile="poms\cd_wrapper-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\preview\webservice\java\webapp\cd_preview_webservice.war" -DpomFile="poms\cd_preview_webservice-7.1.0.pom"

rem ugc: todo

rem upload: three deployer jars & just warfile
call %maven_command% -Dfile="..\..\Content Delivery\roles\upload\java\cd_upload.war" -DpomFile="poms\cd_upload-7.1.0.pom"

call %maven_command% -Dfile="..\..\Content Delivery\roles\upload\java\lib\cd_deployer.jar" -DpomFile="poms\cd_deployer-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\upload\java\lib\cd_undo.jar" -DpomFile="poms\cd_undo-7.1.0.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\upload\java\lib\cd_upload.jar" -DpomFile="poms\cd_upload_jar-7.1.0.pom"



rem webservice: jars elsewhere, just the warfile
call %maven_command% -Dfile="..\..\Content Delivery\roles\webservice\java\cd_webservice.war" -DpomFile="poms\cd_webservice-7.1.0.pom"

rem third party closed source
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\third-party-lib\easylicense.jar" -DpomFile="poms\easylicense-2.5.pom"
call %maven_command% -Dfile="..\..\Content Delivery\roles\api\java\third-party-lib\jdbcpool.jar" -DpomFile="poms\jdbcpool-1.0.pom"